package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.app.model.bean.ProvinceListResponse
import com.gexiaobao.pigeon.databinding.ItemProvinceCityAreaBinding
import com.gexiaobao.pigeon.databinding.ItemShopServiceDetailListBinding

/**
 * @Author      : hxw
 * @Date        : 2024/3/11 16:17
 * @Describe    :
 */
class StreetAdapter(data: ArrayList<ProvinceListResponse.ListBean>) :
    BaseQuickAdapter<ProvinceListResponse.ListBean, DataBindBaseViewHolder>(R.layout.item_province_city_area, data) {
    override fun convert(holder: DataBindBaseViewHolder, item: ProvinceListResponse.ListBean) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemProvinceCityAreaBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动
    }

}